package com.tjetc.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.tjetc.domain.Building;
import com.tjetc.mapper.BuildingMapper;
import com.tjetc.service.BuildingService;
@Service
public class BuildingServiceImpl implements BuildingService{

    @Resource
    private BuildingMapper buildingMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return buildingMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Building record) {
        return buildingMapper.insert(record);
    }

    @Override
    public int insertSelective(Building record) {
        return buildingMapper.insertSelective(record);
    }

    @Override
    public Building selectByPrimaryKey(Integer id) {
        return buildingMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Building record) {
        return buildingMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Building record) {
        return buildingMapper.updateByPrimaryKey(record);
    }

}
